package com.example.demo.service.dxy;

import com.example.demo.dao.dxy.UserDao;
import com.example.demo.entity.User;
import com.example.demo.entiy.dxy.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IUserServiceImpl implements IUserService {
    @Autowired
    UserDao userDao;

    @Override
    public List<User> findUserAll() {
        List<User> all = userDao.findUserAll();
        return all;
    }
    @Override
    public int addUserInfo(String id,String username,String password,String birthday,String photo,String introduce,String usertype) {
        int addUserInfo =userDao.addUserInfo(id,username,password,birthday,photo,introduce,usertype);
        return addUserInfo;
    }
    @Override
    public int deleteUserInfo(String id) {
        int deleteUserInfo= userDao.deleteUserInfo(id);
        return deleteUserInfo;
    }
    @Override
    public int updeteUserInfo(String id,String username,String password,String birthday,String photo,String introduce,String usertype) {
        int updeteUserInfo = userDao.updeteUserInfo(id,username,password,birthday,photo,introduce,usertype);
        return updeteUserInfo;
    }
}
